<?php /* Smarty version 2.6.18, created on 2009-05-22 08:25:28
         compiled from default/element.fineproducts.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'default/element.fineproducts.html', 24, false),)), $this); ?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
	<td>
	<table width="100%" height="29" border="0" cellpadding="2" cellspacing="2" class="bghui">
		<tr> 
		  <td width="12%"><div align="center"><img src="<?php echo $this->_tpl_vars['media_path']; ?>
images/kindbj01.gif" width="2" height="22"></div></td>
		  <td class="font14blak"><div align="left" class="font14blak">精品展示</div></td>
		</tr>
	  </table>
	  </td>
  </tr>
  <tr> 
	<td>
	<table width="100%" border="0" cellspacing="2" cellpadding="3">
		<tr> 
		  <?php unset($this->_sections['fp']);
$this->_sections['fp']['loop'] = is_array($_loop=$this->_tpl_vars['FineProducts']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['fp']['name'] = 'fp';
$this->_sections['fp']['show'] = true;
$this->_sections['fp']['max'] = $this->_sections['fp']['loop'];
$this->_sections['fp']['step'] = 1;
$this->_sections['fp']['start'] = $this->_sections['fp']['step'] > 0 ? 0 : $this->_sections['fp']['loop']-1;
if ($this->_sections['fp']['show']) {
    $this->_sections['fp']['total'] = $this->_sections['fp']['loop'];
    if ($this->_sections['fp']['total'] == 0)
        $this->_sections['fp']['show'] = false;
} else
    $this->_sections['fp']['total'] = 0;
if ($this->_sections['fp']['show']):

            for ($this->_sections['fp']['index'] = $this->_sections['fp']['start'], $this->_sections['fp']['iteration'] = 1;
                 $this->_sections['fp']['iteration'] <= $this->_sections['fp']['total'];
                 $this->_sections['fp']['index'] += $this->_sections['fp']['step'], $this->_sections['fp']['iteration']++):
$this->_sections['fp']['rownum'] = $this->_sections['fp']['iteration'];
$this->_sections['fp']['index_prev'] = $this->_sections['fp']['index'] - $this->_sections['fp']['step'];
$this->_sections['fp']['index_next'] = $this->_sections['fp']['index'] + $this->_sections['fp']['step'];
$this->_sections['fp']['first']      = ($this->_sections['fp']['iteration'] == 1);
$this->_sections['fp']['last']       = ($this->_sections['fp']['iteration'] == $this->_sections['fp']['total']);
?>
		  <!--单个产品 -->
		  <td width="472" align="center">
		  <table width="75" height="65" border="0" cellpadding="0" cellspacing="1">
			  <tr> 
				<td width="92" height="18"><span class="photo"><a href="<?php echo $this->_tpl_vars['SiteUrl']; ?>
product/content.php?id=<?php echo $this->_tpl_vars['FineProducts'][$this->_sections['fp']['index']]['ID']; ?>
#tradetopic"><img src="<?php echo $this->_tpl_vars['attachment_dir']; ?>
<?php echo $this->_tpl_vars['FineProducts'][$this->_sections['fp']['index']]['ProductPicture']; ?>
.small.jpg" width="75" height="75" border="0"></a></span></td>
			  </tr>
		  </table>
		  <?php echo ((is_array($_tmp=$this->_tpl_vars['FineProducts'][$this->_sections['fp']['index']]['Name'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 9, "") : smarty_modifier_truncate($_tmp, 9, "")); ?>

		  </td>
		  <?php if (!($this->_sections['fp']['iteration'] % 2)): ?>
		  </tr>
		  <?php endif; ?>
		 <!--单个产品:~ -->
	    <?php endfor; endif; ?>	
	  </table>
	</td>
  </tr>
</table>